#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include "clientsocket.h"

namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:

    explicit MainWidget(QWidget *parent = nullptr);

    ~MainWidget();

    void setSocket(ClientSocket *);

private slots:

    void on_dial_valueChanged(int value);

    void on_dial_2_valueChanged(int value);

    void on_dial_3_valueChanged(int value);

    void on_checkBox_stateChanged(int arg1);

    void on_horizontalSlider_valueChanged(int value);

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

private:

    void keyPressEvent(QKeyEvent *);

    void keyReleaseEvent(QKeyEvent *);

private:

    QMap<Qt::Key,bool> keybord;

    int speed = 0;

    ClientSocket *socket;

    Ui::MainWidget *ui;

};

#endif // MAINWIDGET_H
